#pragma once

#include "pch.h"
#include <string>
#include<vector>
#include <map>
#include "Typedef.h"

class CLog
{
public:
	CLog();
	CLog(CString path);
	~CLog();
public:
	void SetUI(HWND ui);
	void DisplayAndSaveLog(std::wstring msg, eEVENT_LEVEL level);
	void Save();
private:
	HWND m_UI;
	std::wstring m_Path;
	std::multimap<std::wstring, std::wstring>m_dictLogMsg;
	CRITICAL_SECTION m_csLogger;
};

